﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FurStudy.Core
{
    /// <summary>
    /// 形状接口
    /// </summary>
    public interface IShape
    {
        /// <summary>
        /// 圆形
        /// </summary>
        public class Circle
        {
            /// <summary>
            /// X坐标
            /// </summary>
            public double X { get; set; }

            /// <summary>
            /// Y坐标
            /// </summary>
            public double Y { get; set; }

            /// <summary>
            /// 半径
            /// </summary>
            public double Radius { get; set; }
        }

        /// <summary>
        /// 正方形
        /// </summary>
        public class Square
        {
            /// <summary>
            /// 边长（宽）
            /// </summary>
            public double Width { get; set; }
        }

        /// <summary>
        /// 三角形
        /// </summary>
        public class Triangle
        {
            /// <summary>
            /// 边X
            /// </summary>
            public double SideX { get; set; }

            /// <summary>
            /// 边Y
            /// </summary>
            public double SideY { get; set; }

            /// <summary>
            /// 边Z
            /// </summary>
            public double SideZ { get; set; }
        }

        /// <summary>
        /// 形状类型
        /// </summary>
        public enum ShapeType
        {
            /// <summary>
            /// 圆形
            /// </summary>
            Circle = 1,
            /// <summary>
            /// 正方形
            /// </summary>
            Square = 2,
            /// <summary>
            /// 三角形
            /// </summary>
            Triangle = 3
        }
    }
}
